<div class="complaint_list_header">
  <% if @item.nil? %>
<% else%>
  <span><%= "#{@item.title}" %></span>
  <span style="position:absolute;right:0px;">
    <%=collection_select(:category, :id, @all_items-@item.to_a,:id,:title, options = {:prompt=>"-Select a different category-"}, html_options = {:onchange=>"javascript:location.href='/categories/'+this.value+'/complaints'"}) if @context=="category"%> 
    <%=collection_select(:company, :id, @all_items-@item.to_a,:id,:title, options = {:prompt=>"-Select a different company-"}, html_options = {:onchange=>"javascript:location.href='/companies/'+this.value+'/complaints'"}) if @context=="company"%> 
    <%=collection_select(:tag, :id, @all_items-@item.to_a,:id,:title, options = {:prompt=>"-Select a different tag-"}, html_options = {:onchange=>"javascript:location.href='/tags/'+this.value+'/complaints'"}) if @context=="tag"%> 
  </span>
<%end%>
</div>
